import asyncComponent from './asyncComponent'
const _import_views = file => asyncComponent(() => import(`../pages${file}`))
export default [
    {
        title: '首页',
        path: '/home',
        exact:true,
        component: _import_views('/home/index'),
    },
    {
        title: '组织架构与成员维护',
        path: '/organMember',
        redirect: '/organMember/user/userList',
        children: [
            {
                title: '用户管理',
                path: '/organMember/user',
                redirect: '/organMember/user/userList',
                children: [
                    {
                        title: '用户列表',
                        path: '/organMember/user/userList',
                        component: _import_views('/organMember/user/userList'),
                    },
                    {
                        title: '用户详情',
                        path: '/organMember/user/userDetails/:id',
                        component: _import_views('/organMember/user/userDetails'),
                        hidden:true
                    },
                    {
                        title: '上岗考核',
                        path: '/organMember/user/jobCheck',
                        component:  _import_views('/organMember/user/jobCheck'),
                    },
                    {
                        title: '年度培训计划',
                        path: '/organMember/user/yearTrainPlan',
                        component: _import_views('/organMember/user/yearTrainPlan')
                    },
                    {
                        title: '年度培训计划审批记录',
                        path: '/organMember/user/yearTrainPlanAplRecord',
                        component:  _import_views('/organMember/user/yearTrainPlanAplRecord')
                    },
                    {
                        title: '培训计划实施',
                        path: '/organMember/user/trainPlanCarryout',
                        component: _import_views('/organMember/user/trainPlanCarryout')
                    },
                    
                    {
                        title: '用户考核',
                        path: '/organMember/user/userCheck',
                        component: _import_views('/organMember/user/userCheck')
                    },
                    {
                        title: '岗位管理',
                        path: '/organMember/user/jobsManage',
                        component: _import_views('/organMember/user/jobsManage')
                    },
                    {
                        title: '岗位授权',
                        path: '/organMember/user/jobImpower',
                        component: _import_views('/organMember/user/jobImpower')
                    },
                    {
                        title: '岗位授权审批记录',
                        path: '/organMember/user/jobImpApprovalRecord',
                        component: _import_views('/organMember/user/jobImpApprovalRecord')
                    }
                ]
            },
            {
                title: '权限管理',
                redirect: '/organMember/permis/permission',
                path: '/organMember/permis/permission',
                children: [{
                        title: '角色管理',
                        path: '/organMember/permis/role',
                        component: _import_views('/organMember/permis/role'),
                    },
                ]
            },
            {
                title: '组织部门管理',
                path: '/organMember/organDeparts',
                redirect: '/organMember/organDeparts/organDepart',
                children: [
                    {
                        title: '组织部门管理',
                        path: '/organMember/organDeparts/organDepart',
                        component: _import_views('/organMember/organDeparts/organDepart'),
                    }
                ]
            },
        ]
    },
]
